Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 21, 2025

The render function from vitest-browser-svelte and vitest-browser-react is async but tests were calling it synchronously.

Changes:

  • Updated 50 test files (25 Svelte + 25 React) to make test functions async and await render calls

Before:

it('renders', () => {
  const { getByTestId } = render(Test);
  expect(getByTestId('root')).toBeInTheDocument();
});

After:

it('renders', async () => {
  const { getByTestId } = await render(Test);
  expect(getByTestId('root')).toBeInTheDocument();
});

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@changeset-bot
Copy link

changeset-bot bot commented Nov 21, 2025

⚠️ No Changeset found

Latest commit: 5cae513

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Nov 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
www.skeleton.dev Error Error Nov 21, 2025 1:56pm

Copilot AI changed the title [WIP] Remove all uses of '@/'' path alias in packages Make render calls async in vitest browser mode tests Nov 21, 2025
Copilot finished work on behalf of Hugos68 November 21, 2025 13:56
Copilot AI requested a review from Hugos68 November 21, 2025 13:56
@Hugos68 Hugos68 marked this pull request as ready for review November 21, 2025 14:18
@Hugos68 Hugos68 merged commit bfae285 into perf/monorepo Nov 21, 2025
0 of 2 checks passed
@Hugos68 Hugos68 deleted the copilot/sub-pr-4135 branch November 21, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants